#if !defined(_APP_BLUTOOTH_)
#define _APP_BLUTOOTH_

#include "app_device.h"

typedef enum{
    BT_BR_9600='4',
    BT_BR_115200='8'
}BTbraud;

int app_bluetooth_status(Device *device);
int app_bluetooth_rename(Device *device,char *name);
int app_bluetooth_setBraudRate(Device *device,BTbraud br);
int app_bluetooth_reset(Device *device);
int app_bluetooth_setNetID(Device *device,char *netID);
int app_bluetooth_setMaddr(Device *device,char *maddr);

//处理读取的蓝牙数据的函数
int app_bluetooth_postRead(Device *device,char *data,int len);
//处理将要写入的蓝牙数据的函数
int app_bluetooth_preWrite(Device *device,char *data,int len);

#endif // _APP_BLUTOOTH_
